= form_tag search_path, method: :get, class: "search-form" do
  // Keep chosen display mode across searches, regardless of search form location within page
  - if @display_mode and controller_name == "searches"
    input type="hidden" name="display" value=@display_mode.current

  .field.has-addons.has-addons-centered
    .control.is-expanded
      input.input placeholder="Search for libraries" type="text" name="q" value=@query
    .control
      button.button type="submit"
        span.icon: i.fa.fa-search
        span Search
